package com.v2.k10;


import com.luban.service.A;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 测试@Resouce
 */
public class Test {

	public static void main(String[] args) {

		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);

//		System.out.println(applicationContext.getBean("k1"));
		System.out.println("AppConfig.user1 = "+applicationContext.getBean(AppConfig.class).user1);


	}

}
